package com.lgz.lgzapiclient.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

public class SignUtils {

    /**
     * 生产签名
     *
     * @param body
     * @param secretKey
     * @return
     */
    public static String getSige(String body, String secretKey) {
        Digester md5 = new Digester(DigestAlgorithm.SHA256);      // 加密算法
        String content = body.toString() +"."+ secretKey;
        String digestHex = md5.digestHex(content);
        return digestHex;
    }
}
